vcVector

A 4x1 column vector which is generally used to define joint lengths in robots, offsets and directions, and angles of rotation.

See in: Overview

Module: vcCore

Parent: -

Children -

Referenced by: vcBoundingBox.Center, vcBoundingBox.HalfDiagonal, vcBufferProductsStatement.PatternStep, vcCamera.CenterOfInterest, ... (see more)
vcBoundingBox.Center
vcBoundingBox.HalfDiagonal
vcBufferProductsStatement.PatternStep
vcCamera.CenterOfInterest
vcCamera.Eye
vcCollisionRecord.PointA
vcCollisionRecord.PointB
vcDirectionalLight.Direction
vcFrameKinematicData.AngularVelocity
vcFrameKinematicData.LinearVelocity
vcLineSet.Lines
vcLineSet.getLine()
vcMatrix.A
vcMatrix.AxisAngle
vcMatrix.Euler
vcMatrix.N
vcMatrix.O
vcMatrix.P
vcMatrix.Quaternion
vcMatrix.WPR
vcNode.localToWorld()
vcNode.worldToLocal()
vcPointLight.Position
vcPointSet.getPointPosition()
vcProductTypeAssemblyPatternItem.DefaultBoundsDimensions
vcSnapService.TargetNormal
vcSnapService.TargetPosition
vcSpotLight.Direction
vcSpotLight.Position
vcText2DSet.Position
vcToolFrame.Inertia
vcTopology.getPoint()
vcTopologyPickService.TargetNormal
vcTopologyPickService.TargetPosition
vcTransportPatternInStatement.PatternCount
vcTransportPatternInStatement.PatternStep
vcTriangleSet.Points
vcTriangleSet.getPoint()
vcTriangleSet.getPointNormals()
vcTriangleSet.getPointPositions()
vcTriangleSet.getTriangleNormal()
vcVectorExpressionProperty.CalculatedValue
vcVectorListProperty.Value
vcVectorProperty.Value
vcVectorStepProperty.AllowedValues
vcVectorStepProperty.DefaultValue
vcVectorStepProperty.Value
vcVolumeDetector.Corner1
vcVolumeDetector.Corner2

Properties

Learn how to use properties here. The properties are also inherited from the parent class.

NameTypeAccessDescription
Valueslist[Real]RGets vector values as a list of 4 reals.
WRealRWGets or sets the w-component (fourth element) of vector.
XRealRWGets or sets the x-component (first element) of vector.
YRealRWGets or sets the y-component (second element) of vector.
ZRealRWGets or sets the z-component (third element) of vector.

Methods

Learn how to use methods here. The methods are also inherited from the parent class.

NameReturn TypeParametersDescription
angleRealvcVector vectorReturns the angle between vector and a given vector, in radians.
See more
Parameters:
vector (vcVector): a vector to calculate the angle to

Returns:
Real: angle between the vectors
angleDegRealvcVector vectorReturns the angle between vector and a given vector, in degrees.
See more
Parameters:
vector (vcVector): a vector to calculate the angle to

Returns:
Real: angle between the vectors
crossvcVectorvcVector vectorReturns the cross product of this vector with another vector.
See more
Parameters:
vector (vcVector): The other vector.

Returns:
vcVector: Cross product of vectors.
dotRealvcVector vectorReturns the dot product of this vector with another vector.
See more
Parameters:
vector (vcVector): The other vector.

Returns:
Real: Dot product of vectors.
getQuaternionAnglevcVectorvcVector vectorReturns the angle between vector and a given vector, as a quaternion.
See more
Parameters:
vector (vcVector): a vector to calculate the angle to

Returns:
vcVector: a quaternion representing the angle between vectors
lengthRealNoneReturns the magnitude (length) of vector.

Returns:
Real: magnitude (length) of vector.
newvcVectorNoneCreates a new vector with values initialized to (0, 0, 0, 1).

Returns:
vcVector: Created vector.
newvcVectorReal x,
Real y,
Real z
Creates a new vector with given values, initializing W-component to 1.
See more
Parameters:
x (Real): X-component of the vector.
y (Real): Y-component of the vector.
z (Real): Z-component of the vector.

Returns:
vcVector: Created vector.
newvcVectorReal x,
Real y,
Real z,
Real w
Creates a new vector with given values.
See more
Parameters:
x (Real): X-component of the vector.
y (Real): Y-component of the vector.
z (Real): Z-component of the vector.
w (Real): W-component of the vector.

Returns:
vcVector: Created vector.
newvcVectorvcVector vecCreates a copy of the given vector.
See more
Parameters:
copy (vcVector): The vector to create copy from.

Returns:
vcVector: Created vector.
normalizeNoneNoneNormalizes vector.
squareRealNoneReturns the square of vector.

Returns:
Real: square of vector.
toStringStringOptional Keyword[includeW = Boolean],
Optional Keyword[precision = Integer],
Optional Keyword[includeZeros = Boolean]
Returns string representation of matrix.
See more
Parameters:
format (vcMatrixFormat): The representation format.
precision (Integer): Precision of real values.
includeZeros (Boolean): Include zeros up to the defined precision limit. (P=45.000000 vs P=45).